package model

type Category struct {
	ID   uint   `gorm:"primarykey"`
	Name string `gorm:"type:varchar(20);not null" json:"name"`
	Desc string `gorm:"type:varchar(50);" json:"desc"`
}

func (Category) TableName() string {
	return "category"
}
